{? if $results ?}
<div id="judge_result">
<table>
	<tr>
		{? foreach key=key item=title from=$titles ?}
			<th {? if $title != 'memory_spend' ?}
				class="has_right_border"
			    {? /if ?}>{? $title|replace:"_":" "|capitalize ?}</th>
		{? /foreach ?}
	</tr>

	{?* 设置一个指示变量,用来生成条文表格 *?}
	{? assign var=spec value=0 ?}
	{? foreach key=key item=item from=$results ?}
	{? assign var=spec value=$spec+1 ?}
		<tr {? if $spec%2 eq 0 ?} class="spec" {? /if ?}>
		{? foreach key=key item=item from=$item ?}

			{? if $key == 'judge_time' ?}
				{? assign var=item value=$item|date_format:"%H:%M:%S %m/%d/%Y" ?}
			{? /if ?}

			<td 
				class="{? if $key != 'memory_spend' ?}has_right_border {? /if ?}
				{? if $key eq 'result' and $item != 'Accepted' ?} er{? /if ?}"
			>
			{? $item ?}
			</td>
		{? /foreach ?}
		</tr>
	{? /foreach ?}
</table>

<div id="pager"> 
{? $links ?}
</div> 

</div>
{? else ?}
	<div class="error">No job yet , do you want have a try ? click me.</div>
{? /if ?}

			

